﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace Dycox.Drawing
{
    public struct HotPoint
    {
        public static readonly HotPoint Empty = new HotPoint();

        public HotPoint(PointF location, int id)
        {
            _location = location;
            _id = id;
        }

        private PointF _location;

        public PointF Location
        {
            get { return _location; }
            set { _location = value; }
        }

        public float X
        {
            get { return _location.X; }
            set { _location.X = value; }
        }

        public float Y
        {
            get { return _location.Y; }
            set { _location.Y = value; }
        }

        private int _id;

        public int ID
        {
            get { return _id; }
        }

        public bool IsEmpty
        {
            get
            {
                return _location.IsEmpty && _id == 0;
            }
        }
    }
}
